
using UnityEngine;

public class BDebug
{
    private static bool b打印日志;

    public static void 监听开关日志(bool b)
    {
        b打印日志 = b;
    }

    public static void Log(string s)
    {
        if (!b打印日志) return;
        Debug.Log(s);
    }
    public static void Warn(string s)
    {
        if (!b打印日志) return;
        Debug.LogWarning(s);
    }
    public static void Error(string s)
    {
        if (!b打印日志) return;
        Debug.LogError(s);
    }
}
